<template>
    <div class="km-dark" @click="changeTheme">
        <slot name="km-content"></slot>
    </div>
</template>
<script>
    export default function() {
        this.changeTheme = (e, element) => {
            document.querySelector('html').classList.toggle('dark')
        }
    }
</script>
<style>
    .km-dark {
        display: inline-block;
    }
</style>